package cn.nsu.douban.entity;

import java.util.Date;
import java.util.Map;
import java.util.Set;

import org.apache.commons.collections.map.HashedMap;

public class ActorInfo  {
    
	
	
	private static Map<Integer, String> genderMap;
	static{
		genderMap=new HashedMap();
		genderMap.put(0,"女");
		genderMap.put(1,"男");
	}
	 private Integer  id;
	 private String name;
	 private String picpath;
	 private String fname;
	 private Integer gender;
	 private String genderView;
	private Date  bitthday;
	 private String xingzuo;
	 /**
	  * 关系  多对多
	  */
	 private  Set<MovieInfo> minfo;

	 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPicpath() {
		return picpath;
	}

	public void setPicpath(String picpath) {
		this.picpath = picpath;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
		this.genderView=genderMap.get(gender);
	}

	 public String getGenderView() {
			return genderView;
		}
	
	public Date getBitthday() {
		return bitthday;
	}

	public void setBitthday(Date bitthday) {
		this.bitthday = bitthday;
	}

	public String getXingzuo() {
		return xingzuo;
	}

	public void setXingzuo(String xingzuo) {
		this.xingzuo = xingzuo;
	}
	public Set<MovieInfo> getMinfo() {
		return minfo;
	}
	public void setMinfo(Set<MovieInfo> minfo) {
		this.minfo = minfo;
	}
  
  	 
	 
	
}
